import request from '@/utils/request'

export function listMiniGood(data) {
    return request({
        url: '/miniGood/list',
        method: 'post',
        data: data
    })
}

export function getMiniGood(keyId) {
    return request({
        url: '/miniGood/detail/' + keyId,
        method: 'get'
    })
}

export function addMiniGood(data) {
    return request({
        url: '/miniGood/add',
        method: 'post',
        data: data
    })
}

export function updateMiniGood(data) {
    return request({
        url: '/miniGood/update',
        method: 'put',
        data: data
    })
}

export function delMiniGood(keyId) {
    return request({
        url: '/miniGood/delete/' + keyId,
        method: 'delete'
    })
}

export function exportMiniGood(data) {
    return request({
        url: '/miniGood/post/export',
        method: 'get',
        params: data
    })
}
